package com.coin.service

import com.coin.dao.flow.TradeFlowMapper
import com.coin.dao.model.TradeFlowExample
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import javax.annotation.Resource

/**
 * Created by chenhao on 2017/5/24.
 */

@Service
open class HelloService @Autowired constructor(var tradeFlowMapper: TradeFlowMapper){
    init {
        println("hello service")
    }

    fun findFlowByMemberIdAndMemberType(memberId:Long){
        val ex=  TradeFlowExample();
        ex.createCriteria().andInMemberAccountEqualTo(memberId.toInt())
        tradeFlowMapper.selectByExample(ex)
    }
}